package chapter1.operator;

public class OperatorDivide implements Operator {

    public double getResult(double operand1, double operand2) {
        return operand2 == 0 ? 0 : operand1 / operand2;
    }
}
